const redis = require("ioredis");

const redisConfig = {
  host: "127.0.0.1",
  port: "6379",
  ttl: 1000 * 60 * 5,
  password: "",
};
const redisClient = new redis(redisConfig);

module.exports = {
  redisClient,
  redisPrefix: "user_info_",
  port: 3000,
  secretOrkey: "vanche-secret",
  defaultpassword: "1234",
  expireTime: 60 * 60 * 24,
  saltTime: 6,
  mySqlDB: {
    db: "mysql",
    // host: "localhost",
    host: "10.213.134.207",
    port: 3306,
    database: "van",
    username: "root",
    password: "foxconn#88",
    // password: "root",
    timezone: "+08:00", //for writing to database
  },
};
